<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core">
<composite:interface>
    <composite:attribute name="bean"/>
    <composite:attribute name="title" required="true"/>
    <composite:attribute name="popupId" default="confirmPane"/>
    <composite:attribute name="currentValue"/>
</composite:interface>
<composite:implementation>
    <a4j:commandLink id="DeleteConfirm" title="#{cc.attrs.title}"
                     execute="@this" immediate="true"
                     render="@none" oncomplete="#{rich:component(cc.attrs.popupId)}.show();return false;">
        <h:graphicImage value="#{resource['images/delete.gif']}"/>
        <f:setPropertyActionListener value="#{cc.attrs.currentValue}" target="#{cc.attrs.bean.entity}"
                                     for="DeleteConfirm"/>
    </a4j:commandLink>

</composite:implementation>
</html>